package wowraidmanager.client.wishlist;

import wowraidmanager.shared.model.wishlist.UserStatus;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class NotMember extends Composite{

    private static NotMemberUiBinder uiBinder = GWT.create(NotMemberUiBinder.class);

    private UserStatus userStatus;

    interface NotMemberUiBinder extends UiBinder<Widget, NotMember>{
    }

    @UiField
    Anchor logout;

    public NotMember(UserStatus result){
        initWidget(uiBinder.createAndBindUi(this));
        userStatus = result;
        setLogoutUrl();
    }

    private void setLogoutUrl(){
        logout.setHref(userStatus.getLogoutUrl());
    }

}
